package com.springapp.model;

import javax.persistence.Entity;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by nicol_000 on 27/08/14.
 */
@Entity

public class Palette {
    private int    iIDPalette;
    private String sLibelle;
    private String sEmplacement;
    private int    iQtePaletteMax;
    private int    iNbPalettesEnStock;
    private int    iQteTotaleCarton;
    private int    iQteArticle;
    private String  sProvenance;
    private String  sSousCat;
    private int     eIDEmplacement;
    private int     eIDTypePalette;
    private int     eIDIDEtatOperation;
    private boolean bEstPicking;
    private boolean bEstHeterogène;
    private String sUrl;
    private List<Pal_ArtFou> lstPalArtFou=new ArrayList<Pal_ArtFou>();

    public Palette() {
    }

    public Palette(int iIDPalette, String sLibelle, String sEmplacement, int iQtePaletteMax, int iNbPalettesEnStock, int iQteTotaleCarton, int iQteArticle, String sProvenance, String sSousCat, String sUrl) {
        this.iIDPalette = iIDPalette;
        this.sLibelle = sLibelle;
        this.sEmplacement = sEmplacement;
        this.iQtePaletteMax = iQtePaletteMax;
        this.iNbPalettesEnStock = iNbPalettesEnStock;
        this.iQteTotaleCarton = iQteTotaleCarton;
        this.iQteArticle = iQteArticle;
        this.sProvenance = sProvenance;
        this.sSousCat = sSousCat;
        this.sUrl     = sUrl;
    }

    public Palette(int iIDPalette, String sLibelle, String sEmplacement, int iQtePaletteMax, int iNbPalettesEnStock, int iQteTotaleCarton, int iQteArticle, String sProvenance, int eIDEmplacement, int eIDTypePalette, int eIDIDEtatOperation, boolean bEstPicking, boolean bEstHeterogène) {
        this.iIDPalette = iIDPalette;
        this.sLibelle = sLibelle;
        this.sEmplacement = sEmplacement;
        this.iQtePaletteMax = iQtePaletteMax;
        this.iNbPalettesEnStock = iNbPalettesEnStock;
        this.iQteTotaleCarton = iQteTotaleCarton;
        this.iQteArticle = iQteArticle;
        this.sProvenance = sProvenance;
        this.eIDEmplacement = eIDEmplacement;
        this.eIDTypePalette = eIDTypePalette;
        this.eIDIDEtatOperation = eIDIDEtatOperation;
        this.bEstPicking = bEstPicking;
        this.bEstHeterogène = bEstHeterogène;
    }



    public List<Pal_ArtFou> getLstPalArtFou() {
        return lstPalArtFou;
    }

    public void setLstPalArtFou(List<Pal_ArtFou> lstPalArtFou) {
        this.lstPalArtFou = lstPalArtFou;
    }

    public void addPalArtFou(Pal_ArtFou _palartfou){
        lstPalArtFou.add(_palartfou);
    }

    public String getsUrl() {
        return sUrl;
    }

    public void setsUrl(String sUrl) {
        this.sUrl = sUrl;
    }

    public String getsSousCat() {
        return sSousCat;
    }

    public void setsSousCat(String sSousCat) {
        this.sSousCat = sSousCat;
    }

    public int getiIDPalette() {
        return iIDPalette;
    }

    public void setiIDPalette(int iIDPalette) {
        this.iIDPalette = iIDPalette;
    }

    public String getsLibelle() {
        return sLibelle;
    }

    public void setsLibelle(String sLibelle) {
        this.sLibelle = sLibelle;
    }

    public String getsEmplacement() {
        return sEmplacement;
    }

    public void setsEmplacement(String sEmplacement) {
        this.sEmplacement = sEmplacement;
    }

    public int getiQtePaletteMax() {
        return iQtePaletteMax;
    }

    public void setiQtePaletteMax(int iQtePaletteMax) {
        this.iQtePaletteMax = iQtePaletteMax;
    }

    public int getiNbPalettesEnStock() {
        return iNbPalettesEnStock;
    }

    public void setiNbPalettesEnStock(int iNbPalettesEnStock) {
        this.iNbPalettesEnStock = iNbPalettesEnStock;
    }

    public int getiQteTotaleCarton() {
        return iQteTotaleCarton;
    }

    public void setiQteTotaleCarton(int iQteTotaleCarton) {
        this.iQteTotaleCarton = iQteTotaleCarton;
    }

    public int getiQteArticle() {
        return iQteArticle;
    }

    public void setiQteArticle(int iQteArticle) {
        this.iQteArticle = iQteArticle;
    }

    public String getsProvenance() {
        return sProvenance;
    }

    public void setsProvenance(String sProvenance) {
        this.sProvenance = sProvenance;
    }

    public int geteIDEmplacement() {
        return eIDEmplacement;
    }

    public void seteIDEmplacement(int eIDEmplacement) {
        this.eIDEmplacement = eIDEmplacement;
    }

    public int geteIDTypePalette() {
        return eIDTypePalette;
    }

    public void seteIDTypePalette(int eIDTypePalette) {
        this.eIDTypePalette = eIDTypePalette;
    }

    public int geteIDIDEtatOperation() {
        return eIDIDEtatOperation;
    }

    public void seteIDIDEtatOperation(int eIDIDEtatOperation) {
        this.eIDIDEtatOperation = eIDIDEtatOperation;
    }

    public boolean isbEstPicking() {
        return bEstPicking;
    }

    public void setbEstPicking(boolean bEstPicking) {
        this.bEstPicking = bEstPicking;
    }

    public boolean isbEstHeterogène() {
        return bEstHeterogène;
    }

    public void setbEstHeterogène(boolean bEstHeterogène) {
        this.bEstHeterogène = bEstHeterogène;
    }
}